|
|
|
|
|
|
|
Figure 11.4.
Add your own properties, methods, and events
to the new control. |
|
|
|
|
|
|
|
|
Don't worry if you forgot something; you can always add it later by modifying the control's code or by using the wizard again. Add the custom method and event for this control and click Next. The dialog box that appears (see Figure 11.5) lets you map the control's public members to those of the controls you placed on the new control or the UserControl object itself. The code produced by the wizard to map members in this manner is very educational, although it may not always match the functionality you want. |
|
|
|
|
|
|
|
|
Figure 11.5.
Use the Procedure Attributes dialog box
to verify the procedure ID for each
property. |
|
|
|
|
|
|
|
|
When you're satisfied with your changes, click Next to continue. The final wizard dialog box lets you specify the characteristics of unmapped members. You first should choose a property type other than the default variant type. You also can set the member description and read/write properties. You should also choose Tools, Procedures Attributes from |
|
|
|
|
|